package cn.kp.learning.dao;

import cn.kp.learning.model.Organization;
import cn.kp.learning.model.OrganizationExample;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface OrganizationDao {

    int insert(Organization record);

    int insertSelective(Organization record);

    int deleteByExample(OrganizationExample example);

    int deleteByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example);

    int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example);

    int updateByPrimaryKeySelective(Organization record);

    int updateByPrimaryKey(Organization record);

    int countByExample(OrganizationExample example);
    
    List<Organization> selectByExample(OrganizationExample example);

    Organization selectByPrimaryKey(HashMap<String,Object> hm);

    List<Organization> selectCompany(HashMap<String,Object> hm);

    List<Organization> selectDepartment(HashMap<String,Object> hm);
    
    List<Organization> selectOffice(HashMap<String,Object> hm);
    
    List<Organization> selectGroup(HashMap<String,Object> hm);
}